package cn.rkylin.oms.system.monthlyIncomeReport.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.github.pagehelper.PageInfo;

import cn.rkylin.core.IDataBaseFactory;
import cn.rkylin.oms.system.monthlyIncomeReport.vo.MonthlyIncomeReportVO;

@Repository(value = "monthlyIncomeReportDAO")
public class MonthlyIncomeReportDAOImpl implements IMonthlyIncomeReportDAO{
	
    @Autowired
    protected IDataBaseFactory dao;
    
    private static final String STATEMENT_PAGE_SELECT_BY_CONDITION = "pageSelectMonthlyIncomeReport";
    
    /**
     * getMonthlyIncomeReport:查询日收支报表
     */
	@Override
	public PageInfo<MonthlyIncomeReportVO> getMonthlyIncomeReport(int page, int length,
			MonthlyIncomeReportVO monthlyIncomeReportVO) throws Exception {
        return dao.findPage(page, length, STATEMENT_PAGE_SELECT_BY_CONDITION, monthlyIncomeReportVO);
	}

}
